home *** CD-ROM | disk | FTP | other *** search
/ Qoole for Quake / Qoole for Quake (USA) / Qoole for Quake (USA).bin / Tutorial / HTML / QUBE.ZIP / SRC / LIGHT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-05  |  1.5 KB  |  69 lines

  1. /* structure of the light lump */
  2.  
  3. #include "cmdlib.h"
  4. #include "mathlib.h"
  5. #include "bspfile.h"
  6. #include "entities.h"
  7. #include "threads.h"
  8.  
  9. #define    ON_EPSILON    0.1
  10.  
  11. #define    MAXLIGHTS            1024
  12.  
  13. void LoadNodes (char *file);
  14. qboolean TestLine (vec3_t start, vec3_t stop);
  15.  
  16. void LightFace (int surfnum);
  17. void LightLeaf (dleaf_t *leaf);
  18.  
  19. void MakeTnodes (dmodel_t *bm);
  20.  
  21. extern    float        scaledist;
  22. extern    float        scalecos;
  23.  
  24. extern    int        c_culldistplane, c_proper;
  25.  
  26. byte *GetFileSpace (int size);
  27. extern    byte        *filebase;
  28.  
  29. extern    vec3_t    bsp_origin;
  30. extern    vec3_t    bsp_xvector;
  31. extern    vec3_t    bsp_yvector;
  32.  
  33. void TransformSample (vec3_t in, vec3_t out);
  34. void RotateSample (vec3_t in, vec3_t out);
  35.  
  36. extern    qboolean    extrasamples;
  37. extern    qboolean    fastlight;
  38.  
  39. extern    float        minlights[MAX_MAP_FACES];
  40.  
  41. void ScrnInit(void);
  42. void ShowStatusEntry(char *format, ...);
  43. void ShowTempEntry(char *format, ...);
  44. void PercentBar(int percent);
  45. void MajorPercentBar(int percent);
  46. void TimeUpdate(void);
  47. void CfPrintf(FILE *file, char *format, ...);
  48. void *qmalloc(int size);
  49. void qfree(void *mem);
  50.  
  51. extern int    StatusLine;        /* Output line for status info */
  52. extern long int StartTime;
  53. extern long int LastCheck;
  54. extern int    TotalStatusEntries;    /* How many status entries have gone by (out of 32) */
  55. extern int    CurPercent;
  56. extern int    CurMajorPercent;
  57. extern FILE    *LogFile;
  58.  
  59. extern long int TotalAlloc;
  60.  
  61. extern long    facebrightness;
  62. extern long    facebrightnesscount;
  63. extern long    levelbrightness;
  64.  
  65. #define malloc qmalloc
  66. #define free qfree
  67.  
  68.  
  69.